package com.mixsmart.bean;

import java.util.Objects;

/**
 * @author 乌草坡 2024-05-07
 * @since 6.0.4
 */
public class ResourceAuthValue {

    private String resourceId;

    private String authValue;

    public ResourceAuthValue() {

    }

    public ResourceAuthValue(String resourceId, String authValue) {
        this.resourceId = resourceId;
        this.authValue = authValue;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getAuthValue() {
        return authValue;
    }

    public void setAuthValue(String authValue) {
        this.authValue = authValue;
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.resourceId, this.authValue);
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof ResourceAuthValue) {
            ResourceAuthValue objParam = (ResourceAuthValue) obj;
            return getResourceId().equals(objParam.getResourceId()) && getAuthValue().equals(objParam.getAuthValue());
        } else {
            return false;
        }
    }
}
